def plotOutput(name):
img1 =Image.open("Images/"+name+".jpg").convert('L')
median_blurred = img1.filter(ImageFilter.MedianFilter(size=3))
not_blurred = np.array(img1)
pix1 = np.array(median_blurred)
patches1 = getPatches(pix1, window_shape, step_length)
img1_pixel_ratios = getPixelRatios(pix1, bin_number).reshape((-1,))
patch1_pixel_ratios = getPixelRatios(patches1, bin_number)
image1_bin_limits = calculateBinLimits(patch1_pixel_ratios)
plotXBarChart(patch1_pixel_ratios, image1_bin_limits)
outliers = getOutlierPatchIndices(patch1_pixel_ratios, image1_bin_limits, window_shape, step_length,bin_number)
fillOutliers(not_blurred, outliers, window_shape, step_length)